package com.chinda.common.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;

/**
 * 任务状态
 * @author Wang Chinda
 * @date 2021/7/9
 * @see
 * @since 1.0
 */
@AllArgsConstructor
public enum TaskStatusEnum implements IEnum<Integer> {

    SUCCESS(0, "成功"),
    FAILURE(1, "失败");

    private final int value;
    private final String desc;

    @Override
    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
